package xq.test;

public class CDtest {
	public void testCase1() {
		System.out.println("test case #1:");
		System.out.println("\tinput (-1, 0). expecting <0.");
		if (CDnew.commonDivisor(-1, 0) < 0)
			System.out.println("\tpassed!");
		else {
			System.out.println("\tFAILED!");
		}
	}

	public void case2() {
		System.out.println("test case #2:");
		System.out.println("\tinput (3, 3). expecting 3.");
		if (CDnew.commonDivisor(3, 3) == 3)
			System.out.println("\tpassed!");
		else {
			System.out.println("\tFAILED!");
		}
	}

	public void Case3() {
		System.out.println("test case #3:");
		System.out.println("\tinput (2, 1). expecting 1.");
		if (CDnew.commonDivisor(2, 1) == 1)
			System.out.println("\tpassed!");
		else {
			System.out.println("\tFAILED!");
		}
	}

	public void testcase4() {
		System.out.println("test case #4:");
		System.out.println("\tinput (1, 2). expecting 1.");
		if (CDnew.commonDivisor(1, 2) == 1)
			System.out.println("\tpassed!");
		else {
			System.out.println("\tFAILED!");
		}
	}
}
